<template>
 <div>
    <el-table
    :data="roleList"
    stripe
    :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
    row-key="id"
    style="width: 100%">
    <el-table-column
        prop="id"
        label="角色编号"
        width="80"
        align="center">
    </el-table-column>
    <el-table-column
        prop="rolename"
        label="角色名称"
        width="80"
        align="center">
    </el-table-column>
   
    <el-table-column
        prop="status"
        label="是否启用">
    </el-table-column>
    <el-table-column
        label="操作">
        <template>
          
            <el-button type="primary" icon="el-icon-edit" circle ></el-button>
            <el-button type="danger" icon="el-icon-delete" circle ></el-button>
        </template>
    </el-table-column>
</el-table>
 </div>
</template>

<script>
    import {mapState,mapActions} from 'vuex'
export default {
 data(){
 return{
     
 }
 },
 created(){
     this.getRoleListActions()
 },
 computed:{
      ...mapState({
          roleList:state=>state.role.roleList
      })
 },
 methods:{
     ...mapActions('role',['getRoleListActions',])
 },
 components:{}
}

</script>
<style scoped>
</style>